package com.zoespeer.food_delivery_comment_api.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

@Data
public class RegisterVO {


    @Size(min = 2, max = 20, message = "用户名长度需为 2-20 位")
    private String username;

    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度需为 6-20 位")
    private String password;

    @NotBlank(message = "验证码不能为空")
    @Size(min = 4, max = 4, message = "验证码需为 4 位")
    private String checkCode;
}